<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"/>
    <title>工厂基本信息</title>
    <link rel="icon" type="image/png" href="/img/icon.png">
    <script type="text/javascript" src="/h5/newall/newall.js"></script>
    <link rel="stylesheet" type="text/css" href="/h5/newall/newall.css">
</head>

<div class="mui-content-padded H5body basedata">
    <div class="topmsg">
        <p class="msgtext">注册填写/上传的信息越全面，客户信任度越高</p>
    </div>
    <MCform id="Form" fromapi="/api/app/call/getusers_baseinfo_gc"
            action="/api/app/call/setusers_baseinfo_gc"
            class="mctag">
        <MCtitle class="mctag">基本信息</MCtitle>
        <div class="content">
            <ul class="baseul">
                <li class="li">
                    <p class="title">单位名称</p>
                    <input type="text" placeholder="请输入您的工作单位"
                           mcname="com_name"
                           class="mui-input">
                </li>
                <li class="li">
                    <p class="title">法人姓名</p>
                    <input type="text" placeholder="请输入法人姓名"
                           mcname="legal_name"
                           class="mui-input">
                </li>
                <li class="li">
                    <p class="title">性别</p>
                    <MCselect mcname="legal_sex" defaultval="" class="mui-btn-block mctag">
                        <option value="">请选择性别</option>
                        <option value="1">男</option>
                        <option value="2">女</option>
                        <option value="3">不限</option>
                    </MCselect>
                </li>
                <li class="li">
                    <p class="title">手机号</p>
                    <input type="text" placeholder="请输入您的手机号"
                           mcname="legal_mobile"
                           class="mui-input">
                </li>
                <li class="li">
                    <p class="title">座机号</p>
                    <input type="text" placeholder="请输入您的座机号"
                          mcname="com_tel"
                           class="mui-input">
                </li>
                <li class="li">
                    <p class="title">工厂定位<span class="mui-icon mui-icon-location"></span></p>
                    <input id="comCity" type="text" placeholder="请获取您的定位"
                           mcname="comCity"
                           class="mui-input">
                </li>


                <li class="li">
                    <p class="title">具体位置</p>
                    <input type="text" placeholder="具体到门牌号"
                           mcname="com_address"
                           class="mui-input">
                </li>

                <li class="li">
                    <p class="title">工厂简介 </p>
                    <input type="text" placeholder="请输入您的工厂简介"
                           mcname="detail"
                           class="mui-input">
                </li>

            </ul>

            <button id="submit" type="submit"
                    class="mui-btn mui-btn-primary"  >
                保存
            </button>


        </div>
           <input type="hidden" mcname="position" id="position" value=""/>
    </MCform>
</div>

<script type="text/javascript" src="/h5/js/all2.js"></script>
</body>
<style>


</style>
<script>
    var view = new MC.View.MCform('#Form');
    var map = new MC.View.Smap();
    $('#comCity').on('click', function () {
        var position = $('#position').val();
        map.Select(function (json) {
            console.log(json);
            view.vue.comCity=json.address;
            view.vue.position=json.positionStr;
        }, position);

    });

</script>
</body>
</html>